<div ng-controller="sys_regionController" >
    <div class="bg-light lter b-b wrapper-md">
        <button type="submit" class="btn btn-default  pull-right m-b-xs w-xs bg-light" ui-sref="app.system.region.edit({type:'add' })"><strong>新增</strong></button>
        <h1 class="m-n font-thin h3">行政区域管理</h1>
    </div>
    
	<div class="wrapper-md no-padder">
		<div class="panel panel-default">
			<table tt-table tt-params="params" class="table table-striped m-b-none">
				<thead>
					<tr>
						<th>区域名称</th>
						<th>区域代码</th>
						<th>区域类型</th>
						<th>备注</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				</tbody>
				<tfoot>
				</tfoot>
			</table>
		</div>
	</div>
</div>
<script type="text/ng-template" id="region_tree_node">
        <tr tt-node is-branch="node.children.length != 0">
          	<td><span ng-bind="node.name"></span></td>
		   	<td ng-bind="node.code"></td>
			<td app-dict="node.type" dict-type="sysAreaType"></td>
			<td ng-bind="node.remarks"></td>
			<td>
				<a target="_blank" ui-sref="app.system.region.view({id : node.id})" ><i class="glyphicon glyphicon-eye-open"></i>查看</a>&nbsp;&nbsp;
				<a target="_blank" ui-sref="app.system.region.edit({id : node.id, type:'update' })" ><i class="glyphicon glyphicon-edit"></i>编辑</a>&nbsp;&nbsp;
				<a ng-if="node.children && node.children.length===0" ng-click="delete(node, parentNode);"><i class="glyphicon glyphicon-remove"></i>删除</a>
			</td>
        </tr>
</script>